<?php
//http://192.168.0.111/boxsys_t/com.attilax.php/report/rpt.php?iocx=/../../../iocx_timer&table=timer_tab_log&time_fld=timenow&tmpl=box_rpt_tmpl&orderby= id desc&timex=2015-08-03
//http://192.168.0.111/boxsys_t/com.attilax.php/report/rpt.php?iocx=../../iocx_timer&table=timer_tab_log&time_fld=timenow&tmpl=box_rpt_tmpl&orderby=%20id%20desc&timex=2015-08-03
//iocx_timer
 require_once(dirname(__FILE__).'/'.$_GET["iocx"].'.php');
 $timefld=$_GET["time_fld"];
 $sql=" select * from ".$_GET["table"]." t where  ". $timefld.">'@s' and ". $timefld."<'@f' order by ".$_GET["orderby"] ;
 $sql=str_replace("@s",$_GET["timex"]." 00:00:01",$sql);
 $sql=str_replace("@f",$_GET["timex"]." 23:23:59",$sql);
	//$GLOBALS["ioc"]["
// print_r($sql);
 require_once(dirname(__FILE__).'/rpt_by_sql.php');


?>
 
